{extend name="layout"}
{block name="content"}
<div class="box-header with-border">
    <h3 class="box-title">权限列表</h3>
</div>
<a type="button" class="btn " href="/admin/permissions/create">增加权限</a>[仅限程序员操作]
<!-- /.box-header -->
<div class="box-body">
    <table class="table table-bordered">
        <tbody>
        <tr>
            <th style="width: 10px">#</th>
            <th>权限名称</th>
            <th>描述</th>
            <th>操作</th>
        </tr>
    {volist name="rule_info" id="rule"}
        <tr>
            <td>{$rule.id}.</td>
            <td>{$rule.name}</td>
            <td>{$rule.title}</td>
        {if $rule.status == 1}
            <td>
                <a href="/admin/permissions/{$rule.id}/update">修改</a>
                |
                <a class="delete" style="cursor:pointer" data-delete-id="{$rule.id}" data-delete-title="{$rule.title}">删除</a>
            </td>
        {else/}
            <td>
                <a class="recover" style="cursor:pointer" data-recover-id="{$rule.id}" data-recover-title="{$rule.title}">恢复</a>
            </td>
        {/if}
        </tr>
    {/volist}
        </tbody>
    </table>
</div>
{/block}

{block name="footerscript"}

{js href='/static/js/backend/power/permissions.js' /}
{/block}